package interfaz;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JPanel;

public class EdicionClientes implements ActionListener {

	protected int w,h;
	protected JPanel panel;
	
	//sub paneles
	protected JPanel p_agregar;
	protected JPanel p_eliminar;
	protected JPanel p_editar;
	protected JPanel p_informe;
	
	protected JButton Agregar;
	protected JButton Editar;
	protected JButton Eliminar;
	
	public EdicionClientes(JPanel panelEdicionClientes,int width, int height){
		w = width;
		h = height;
		panel = panelEdicionClientes;
		panel.setLayout(new GridLayout(4, 1));
		
		agregarPaneles();
		agregarBotones();
		
	}

	private void agregarPaneles(){
		p_agregar = new JPanel();
		p_agregar.setLayout( null );
		p_agregar.setBorder( BorderFactory.createTitledBorder ("Agregar...") );
		panel.add(p_agregar);
		
		p_eliminar = new JPanel();
		p_eliminar.setLayout( null );
		p_eliminar.setBorder( BorderFactory.createTitledBorder ("Eliminar...") );
		panel.add(p_eliminar);
		
		p_editar = new JPanel();
		p_editar.setLayout( null );
		p_editar.setBorder( BorderFactory.createTitledBorder ("Editar...") );
		panel.add(p_editar);
		
		p_informe = new JPanel();
		p_informe.setLayout( null );
		p_informe.setBorder( BorderFactory.createTitledBorder ("Estado...") );
		panel.add(p_informe);
	}
	
	private void agregarBotones(){
		Agregar = new JButton("Agregar");
		Agregar.setBounds(880, 85, 100, 25);
		p_agregar.add(Agregar);
		
		Eliminar = new JButton("Eliminar");
		Eliminar.setBounds(880, 85, 100, 25);
		p_eliminar.add(Eliminar);
		
		Editar= new JButton("Editar");
		Editar.setBounds(880, 85, 100, 25);
		p_editar.add(Editar);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
		
	}
	
}
